package com.wsleo.jblog.model.user;

import java.sql.Timestamp;

import com.wsleo.core.db.POJO;

/**
 * UserLog.java 
 */
public class UserLog extends POJO {

	private static final long serialVersionUID = 1L;
	
	private User userId;
    private String ip;
    private Timestamp loginTime;

    public User getUserId() {
        return userId;
    }

    public void setUserId(User userId) {
        this.userId = userId;
    }

    public String getIp() {
        return ip;
    }

    public void setIp(String ip) {
        this.ip = ip;
    }

	public Timestamp getLoginTime() {
		return loginTime;
	}

	public void setLoginTime(Timestamp loginTime) {
		this.loginTime = loginTime;
	}

	@Override
	public String toString() {
		return "UserLog [userId=" + userId + ", ip=" + ip + ", loginTime="
				+ loginTime + ", id=" + getId() + "]";
	}

}
